package com.freda.oa.flow.support;

import org.eredlab.g4.bmf.util.SpringBeanLoader;

import com.freda.oa.flow.support.Itf.FlowListenerSupportItf;
import com.freda.oa.flow.support.Itf.FlowRunSupport;
import com.freda.oa.flow.support.Itf.FlowSession;

/**
 *
 * 创建时间 2013-2-10
 *
 * <li>Project: freda_OA
 * <li>Packgae:com.freda.oa.flow.support
 * <li>File Name: FredaFlowContext.java
 * <li>Description:
 * <li>Copyright: Copyright (c) 2009-2012 Seening Co. Ltd.
 * <li>Company: 河北芙睿达软件开发团队
 *
 * @author Rally
 * @version 1.0
 * $Id: FredaFlowContext.java,v 1.0 2013-2-10 上午02:47:25 ZhangYu Exp
 */

public class FredaFlowContext {
	
	private  FlowSession session ;
	
	/**
	 * <li>功能描述：获得流程上下文并初始化流程引擎。
	 * @return
	 * FredaFlowContext 
	 * @author Rally
	 */
	public static FredaFlowContext getContextInstance(){
		
		return (FredaFlowContext) SpringBeanLoader.getSpringBean("flowContext");
	}

	/**
	 * @return the session
	 */
	public FlowSession getSession() {
		return session;
	}

	/**
	 * @param session the session to set
	 */
	public void setSession(FlowSession session) {
		this.session = session;
	}
	
	
}
